package com.mls.fivedistrict.task;

import com.mls.fivedistrict.exception.CustomerException;
import com.mls.fivedistrict.server.ReceiveRecordService;
import com.mls.fivedistrict.server.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.NestedRuntimeException;
import org.springframework.scheduling.quartz.JobMethodInvocationFailedException;
import org.springframework.transaction.annotation.Transactional;

import java.lang.reflect.InvocationTargetException;
import java.util.Date;

/**
 * 已领取的记录转移
 * Created by chenxiuxiang on 2018/4/13.
 */

public class RecordTransferTask {

    @Autowired
    ReceiveRecordService receiveRecordService;

    @Autowired
    RecordService recordService;

    /**
     * 转移领取记录
     */
    public void transferRecord() {

        Date createDate = new Date();
        //转移已完成的记录
        int i = receiveRecordService.insertTransferRecord(createDate);

    }
}
